package com.atguigu.spring5.bean;

/**
 * @author dengzhao
 * @create 2021-12-07 21:19
 */
public class Emp {

    private String eName;
    private String gender;
    private Dept dept;
    public void seteName(String eName) {
        this.eName = eName;
    }

    public Dept getDept() {
        return dept;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }
    public void setDept(Dept dept) {
        this.dept = dept;
    }

    public void add(){
        System.out.println(eName+";;"+gender+";;"+dept);
    }

}
